package com.nosnow.gmall.manage.controller;


import com.alibaba.dubbo.config.annotation.Reference;
import com.nosnow.gmall.bean.SkuInfo;
import com.nosnow.gmall.service.ManageService;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @类名称：SkuManageController
 * @类描述：
 * @author: bingHeng
 * @Date
 * @Version: 1.0
 */
@Controller
public class SkuManageController {

    @Reference
    private ManageService manageService;

    /**
     * 保存Sku相关数据
     * @return
     */
    @RequestMapping(value = "saveSku", method = RequestMethod.POST)
    public ResponseEntity<Void> saveSkuInfo(SkuInfo skuInfo) {
        manageService.saveSkuInfo(skuInfo);
        return ResponseEntity.ok().build();
    }
}
